package routes

import (
	"main/src/controllers"
	"main/src/middlewares"
	"github.com/gofiber/fiber/v2"
)

func ES2Routes(app *fiber.App) fiber.Router {
	es2 := app.Group("/es2", middlewares.AllRequests)

	apiv1 := es2.Group("/api/v1", middlewares.AllRequests)
	apiv1.Get("/otchet/pdchild/get", controllers.GetOtchetPDChilds)

	return apiv1
}
